import request from '@/utils/request_axios'
// 登录接口
export function login(data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}
// 获取验证码
export function captcha() {
  return request({
    url: `/auth/captcha/?${Math.floor(Math.random()*100)}`,
    method: 'get'
  })
}
// 获取菜单
export function getMenu() {
  return request({
    url: '/sys/menus/nav',
    method: 'get'
  })
}
// 退出
export function logout() {
  return request({
    url: '/auth/logout',
    method: 'post'
  })
}
// 测试
export function cesi() {
  return request({
    url: '/casLogin',
    method: 'get'
  })
}
